package com.zygh.interactiveplatform.module.controller;

import com.zygh.interactiveplatform.common.anno.PcLog;
import com.zygh.interactiveplatform.common.constant.SwaggerTagConst;
import com.zygh.interactiveplatform.common.domain.ResponseDTO;
import com.zygh.interactiveplatform.module.service.TRFFAPPService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/traffic-control")
@Api(tags = "六合一")
public class TRFFAPPController {
    @Resource
    private TRFFAPPService trffappService;

    @ApiOperation(value = "六合一车辆和驾驶人查询", notes = "六合一车辆和驾驶人查询")
    @GetMapping("findVehicle")
    @PcLog(logType = "1", module = "六合一车辆和驾驶人查询", content = "六合一车辆和驾驶人查询")
    public ResponseDTO findVehicle() {
        return trffappService.findVehicle();
    }

    @ApiOperation(value = "车辆信息详情", notes = "车辆信息详情")
    @GetMapping("vehicle")
    public Object vehicle( @RequestParam String startDate,
                           @RequestParam String endDate) {
        return trffappService.vehicle(startDate,endDate);
    }


}
